package com.ruoyi.basice_info.service;

import java.util.List;
import com.ruoyi.basice_info.domain.TbAcademicYear;

/**
 * 学年设置Service接口
 * 
 * @author hongyi
 * @date 2023-12-07
 */
public interface ITbAcademicYearService 
{
    /**
     * 查询学年设置
     * 
     * @param academicYearId 学年设置主键
     * @return 学年设置
     */
    public TbAcademicYear selectTbAcademicYearByAcademicYearId(Long academicYearId);

    //根据代码查询详情
    public TbAcademicYear getTbAcademicYearByCode(String code);

    //根据名称查询详情
    public TbAcademicYear getTbAcademicYearByName(String name);

    /**
     * 查询学年设置列表
     * 
     * @param tbAcademicYear 学年设置
     * @return 学年设置集合
     */
    public List<TbAcademicYear> selectTbAcademicYearList(TbAcademicYear tbAcademicYear);

    /**
     * 新增学年设置
     * 
     * @param tbAcademicYear 学年设置
     * @return 结果
     */
    public int insertTbAcademicYear(TbAcademicYear tbAcademicYear);

    /**
     * 修改学年设置
     * 
     * @param tbAcademicYear 学年设置
     * @return 结果
     */
    public int updateTbAcademicYear(TbAcademicYear tbAcademicYear);

    /**
     * 批量删除学年设置
     * 
     * @param academicYearIds 需要删除的学年设置主键集合
     * @return 结果
     */
    public int deleteTbAcademicYearByAcademicYearIds(Long[] academicYearIds);

    /**
     * 删除学年设置信息
     * 
     * @param academicYearId 学年设置主键
     * @return 结果
     */
    public int deleteTbAcademicYearByAcademicYearId(Long academicYearId);
}
